package com.yonyou.pmclouds.stagecheck.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.stagecheck.entity.StageCheckVO;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * @Author chulf
 * @Date 2020/3/31
 * @Description
 **/
public interface StageCheckMapper extends BaseMapper<StageCheckVO> {

    public StageCheckVO[] selectStageCheckVOByPkProject(String pkProject);

    public StageCheckVO[] selectStageCheckVOSByPks(@Param("pks") Set<String> pks);

    public int countByCondition(@Param("pkProjects") String[] pkProjects,
                         @Param("creators") String[] creators,
                         @Param("startDate") String startDate,
                         @Param("endDate") String endDate,
                         @Param("billStatus") int[] billStatus);

    public StageCheckVO[] queryByCondition(@Param("pkProjects") String[] pkProjects,
                                             @Param("creators") String[] creators,
                                             @Param("startDate") String startDate,
                                             @Param("endDate") String endDate,
                                             @Param("billStatus") int[] billStatus,
                                             @Param("start") int start,
                                             @Param("size") int size);
}
